//
//  HMHomeViewController.swift
//  WB25
//
//  Created by HM on 2017/6/28.
//  Copyright © 2017年 itheima. All rights reserved.
//

import UIKit

class HMHomeViewController: HMBaseViewController {
    
    override func viewDidLoad() {
        super.viewDidLoad()
        
        if !isLogin {
            visitorView?.setupVisitorViewInfo(imgName: nil, title: nil)
            return
        }
        
        setupUI()
    }
    
    @objc private func leftButtonClick(){
        print("左侧按钮点击")
    }
    
    @objc private func rightButtonClick(){
        print("右侧按钮点击")
//        let tempVc = HMTempViewController()
//        //        //隐藏tabBar
//        //        tempVc.hidesBottomBarWhenPushed = true
//        navigationController?.pushViewController(tempVc, animated: true)
    }
    private func setupUI(){
        
        setupNav()
    }
    private func setupNav(){
        
        navigationItem.leftBarButtonItem = UIBarButtonItem(imgName: nil, title: "注册", target: self, action: #selector(leftButtonClick))
        navigationItem.rightBarButtonItem = UIBarButtonItem(imgName: nil, title: "登录", target: self, action: #selector(rightButtonClick))
    }
    

}

